Skip to content

Enable unsafe PR checkout in ASIM workflow - #14787

Open
v-sabiraj wants to merge 1 commit into
masterfrom
v-sabiraj-fixingASIM-validation
Open

Enable unsafe PR checkout in ASIM workflow#14787
v-sabiraj wants to merge 1 commit into
masterfrom
v-sabiraj-fixingASIM-validation

Conversation

@v-sabiraj

Copy link
Copy Markdown
Contributor

Adds allow-unsafe-pr-checkout: true to all PR checkout steps in runAsimSchemaAndDataTesters.yaml. This ensures each job can reliably checkout the pull request head SHA in the current repository configuration.

Required items, please complete

Change(s):

  • See guidance below

Reason for Change(s):

  • See guidance below

Version Updated:

  • Required only for Detections/Analytic Rule templates
  • See guidance below

Testing Completed:

  • See guidance below

Checked that the validations are passing and have addressed any issues that are present:

  • See guidance below

Guidance <- remove section before submitting


Before submitting this PR please ensure that you have read the following sections and filled out the changes, reason for change and testing complete sections:

Thank you for your contribution to the Microsoft Sentinel Github repo.

Details of the code changes in your submitted PR. Providing descriptions for pull requests ensures there is context to changes being made and greatly enhances the code review process. Providing associated Issues that this resolves also easily connects the reason.

Change(s):

  • Updated syntax for XYZ.yaml

Reason for Change(s):

Version updated:

  • Yes
  • Detections/Analytic Rule templates are required to have the version updated

The code should have been tested in a Microsoft Sentinel environment that does not have any custom parsers, functions or tables, so that you validate no incorrect syntax and execution functions properly. If your submission requires a custom parser or function, it must be submitted with the PR.

Testing Completed:

  • Yes/No/Need Help

Note: If updating a detection, you must update the version field.

Before the submission has been made, please look at running the KQL and Yaml Validation Checks locally.
https://github.com/Azure/Azure-Sentinel#run-kql-validation-locally

Checked that the validations are passing and have addressed any issues that are present:

  • Yes/No/Need Help

Note: Let us know if you have tried fixing the validation error and need help.

References:


Adds `allow-unsafe-pr-checkout: true` to all PR checkout steps in `runAsimSchemaAndDataTesters.yaml`. This ensures each job can reliably checkout the pull request head SHA in the current repository configuration.
@v-sabiraj
v-sabiraj requested a review from a team as a code owner July 29, 2026 12:00
@v-sabiraj
v-sabiraj requested a review from Copilot July 29, 2026 12:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Enables the workflow to check out the PR head SHA by adding allow-unsafe-pr-checkout: true to PR checkout steps in the ASIM schema/data tester workflow.

Changes:

  • Adds allow-unsafe-pr-checkout: true to multiple checkout steps in runAsimSchemaAndDataTesters.yaml.

Comment on lines 357 to 362
with:
ref: ${{github.event.pull_request.head.sha}}
repository: ${{ github.repository }}
allow-unsafe-pr-checkout: true
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
Comment on lines 412 to 417
with:
ref: ${{github.event.pull_request.head.sha}}
repository: ${{ github.repository }}
allow-unsafe-pr-checkout: true
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{ github.repository }}
allow-unsafe-pr-checkout: true
@v-atulyadav v-atulyadav self-assigned this Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants